package OOP.inherit;

public class AccessPermission {
    public static void main(String[] args) {
        int x = 1, y = 2, z = 3;
        Parent p = new Parent(x, y, z);
        Child c = new Child(x, y, z);
        System.out.println("p.a = " + p.a);
        System.out.println("p.b = " + p.b);
        p.getPrivate();
        System.out.println("c.a = " + c.a);
        System.out.println("c.b = " + c.b);
        c.getPrivate();
    }
}
